//
//  FileDownloader.h
//  DownloadManager
//
//  Created by Deepak Kumar on 12/03/12.
//  Copyright 2012 Frog. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "iPhoto.h"

typedef enum
{
	kNotStart,
	kInProgress, 
	kDone
}FileDownloadStatus;

@protocol FileDownloaderDelegate;

@interface FileDownloader : NSObject {
	id mDelegate;
	FileDownloadStatus mDownloadStatus;
	
    NSIndexPath *mIndexPath;
    iPhoto *mPhoto;

}

@property (nonatomic, strong) id mDelegate;

@property (nonatomic, strong) NSIndexPath *mIndexPath;
@property (nonatomic, strong) iPhoto *mPhoto;

- (void) startDownloadWithFileURL:(NSString *)pURL;
- (void) callDelegteMethod;

@end

@protocol FileDownloaderDelegate <NSObject>
- (void) fileDownloader:(FileDownloader *)pFileDownloader photo:(iPhoto *)pPhoto indexPath:(NSIndexPath *)pIndexPath;
@end

